package com.hnguigu.ajax.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/demo")
public class DemoController {

    @PostMapping("/add")
    public String add() {
        System.out.println("add开发执行");
        return "success";
    }

    @PutMapping("/update")
    public String update() {
        return "success";
    }

    @DeleteMapping("/delete")
    public String delete() {
        return "success";
    }


    @GetMapping("/find")
    public String find() {
        return "success";
    }



}
